package java8;

import java.util.Arrays;
import java.util.Comparator;
import java.util.function.Predicate;

import static java.lang.System.out;

public class Java8Demo {
    public static void main(String[] args) {
        Arrays.asList(5,4,3,1,2).parallelStream()
                .filter((a) -> a > 3)
                .sorted((a, b) -> b - a)
                .map( (a) ->  ">>>" + a )
                .forEach( System.out::println );

        new Thread( ()-> {} ).start();
    }
}